<?php
class preview extends baseController{

	public function __construct(){
		parent::__construct();
		$this->load->model("project_Model","projectModel",TRUE);
		$this->load->model("device_Model","deviceModel",TRUE);
	}

	public function index(){
		$project_id = 4;
		$objProject = $this->projectModel->getProjectByID($project_id);
		$datatemp = array(
				'PROJ' => $objProject,
				'DEV' => $this->deviceModel->getAllSort(null,"d_width ASC")
		);
		$data = array(
				'content' => $this->loadStatic('project/preview',$datatemp)
		);
		$this->loadView($data);
	}
}

?>